package com.example.blog.pojo.resquest;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
public class AddBlogResqust {
    @NotNull(message = "userId不能为空")
    private int userId;
    @NotBlank(message = "文章内容不能为空")
    private String content;
    @NotBlank(message = "文章标题不能为空")
    private String title;
}
